package com.study.talk.data.remote

import com.study.talk.data.model.resp.ResultResponse
import okhttp3.MultipartBody
import retrofit2.Response
import retrofit2.http.Multipart
import retrofit2.http.POST
import retrofit2.http.Part

interface FileApi {

    @Multipart
    @POST("/file/upload/image/other")
    suspend fun upload(@Part file: MultipartBody.Part): Response<ResultResponse<String>>

    @Multipart
    @POST("/file/upload/image/multiple/other")
    suspend fun uploads(@Part files: List<MultipartBody.Part>): Response<ResultResponse<List<String>>>

}